import os


def load_images_from_folder(folder_path):
    """
    加载指定文件夹中的所有图像文件。
    :param folder_path: 文件夹路径
    :return: 图片路径列表
    """
    image_extensions = [".png", ".jpg", ".jpeg", ".bmp", ".tiff"]
    image_paths = []

    for root, _, files in os.walk(folder_path):
        for file in files:
            if any(file.lower().endswith(ext) for ext in image_extensions):
                image_path = os.path.join(root, file)
                image_paths.append(image_path)

    return image_paths


def load_single_image(image_path):
    """
    加载单张图片
    :param image_path: 图像文件路径
    :return: 图像路径
    """
    return [image_path]
